<div class="container-fluid">
    <div class="row">
        <div class="col-sm-3 col-md-2 sidebar" id="sidebar">
            <?= frontend\modules\yii2\widgets\layouts\sidebar\Sidebar::widget([
                "items" => [
                    ["label" => "简介", "url" => "/docs"],
                    ["label" => "安装", "url" => "/docs/install", "items" => [
                        ["label" => "源码安装法", "url" => "/docs/install/source"],
                        ["label" => "Docker", "url" => "/docs/install/docker"],
                        ["label" => "Yiisoft容器安装法", "url" => "/docs/install/docker/yiisoft"],
                        ["label" => "自定义容器安装法", "url" => "/docs/install/docker/custom"],
                    ]],
                    ["label" => "目录结构", "url" => "/docs/layout"],
                    //["label" => "生命周期", "url" => "/docs/life"],
                    ["label" => "应用结构", "url" => "/docs/structure", "items" => [
                        ["label" => "模型", "url" => "/docs/structure/model", "items" => [
                            ["label" => "数据校验", "url" => "/docs/structure/model/rules"],
                        ]],
                        ["label" => "控制器", "url" => "/docs/structure/controller", "items" => [
                            ["label" => "WEB控制器", "url" => "/docs/structure/controller/web"],
                            ["label" => "CONSOLE控制器", "url" => "/docs/structure/controller/console"],
                            ["label" => "API控制器", "url" => "/docs/structure/controller/api", "items" => [
                                ["label" => "Restful Api", "url" => "/docs/structure/controller/restful-api"],
                            ]],
                        ]],
                        //["label" => "视图", "url" => "/docs/structure/view"],
                    ]],
                    ["label" => "应用组件", "url" => "/docs/components", "items" => [
                        ["label" => "Log", "url" => "/docs/components/log", "items" => [
                            ["label" => "FileTarget", "url" => "/docs/components/log/file"],
                            ["label" => "DbTarget", "url" => "/docs/components/log/db"],
                            ["label" => "EmailTarget", "url" => "/docs/components/log/email"],
                            ["label" => "SyslogTarget", "url" => "/docs/components/log/syslog"],
                        ]],
                        ["label" => "Email", "url" => "/docs/components/email"],
                        ["label" => "Formatter", "url" => "/docs/components/formatter"],
                        ["label" => "View", "url" => "/docs/components/view"],
                        ["label" => "UrlManager", "url" => "/docs/components/url-manager", "items" => [
                            ["label" => "Web Route", "url" => "/docs/components/url-manager/web"],
                            ["label" => "Restful Route", "url" => "/docs/components/url-manager/rest"],
                            ["label" => "Group Route", "url" => "/docs/components/url-manager/group"],
                        ]],
                        ["label" => "AssetManager", "url" => "/docs/components/asset-manager"],
                        ["label" => "Security", "url" => "/docs/components/security"],
                        ["label" => "Request", "url" => "/docs/components/request"],
                        ["label" => "Response", "url" => "/docs/components/response"],
                    ]],
                    ["label" => "数据库", "url" => "/docs/database", "items" => [
                        ["label" => "Redis", "url" => "/docs/database/redis", "items" => [
                            ["label" => "安装", "url" => "/docs/database/redis/install"],
                        ]],
                    ]],
                ]
            ])?>
        </div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main cms-article">

            <div class="row">
                <article class="col-sm-12 col-md-10">
                    <?= $content ?>

                    <div class="read-count">
                        <span class="glyphicon glyphicon-eye-open"></span>
                        <span><?=\common\models\Redis::getReadCount()?></span>
                    </div>

                    <footer class="footer vertical-container">
                        <p><span>浙ICP备2021007911号</span>Powered by @lvzmen</p>
                    </footer>
                </article>
                <div class="col-md-2 hidden-xs hidden-sm">
                    <?=\frontend\modules\yii2\widgets\layouts\anchor\Anchor::widget()?>
                </div>
            </div>

        </div>
    </div>
</div>
